<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title>巡查地点列表</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="./css/mui.min.css" rel="stylesheet" />
		<script src="./lib/jquery-2.1.4.js"></script>
		<script src="/web/statics/public/js/base.js"></script>
	</head>

	<body>
		<div class="mui-content" >
			<ul class="mui-table-view" id="xcdlist">
					
				
				
			</ul>
		</div>
		<script>
			$(document).ready(function(){
			
				$.ajax({
					url:"/h5prop/queryChkpointlist",
					dataType:"JSON",
					type:"POST",
					data:{},
					success:function(data){
						// mui.toast(JSON.parse(data.length));
						var content="";
						var d = data;
						// alert(data)
						for(var i=0;i<d.chkpoinlist.length;i++){
							content+='<li class="mui-table-view-cell" onclick=" trans(\''+d.chkpoinlist[i].id+'\')" id="'+d.chkpoinlist[i].id+'">'+d.chkpoinlist[i].chkpointname+'</li>';
						}
						document.getElementById("xcdlist").innerHTML=content;
				//		$("#xcdlist li").on("click",trans);
					},
					error:function(e,type){
						//mui.toast(type);
					}
				});
		});	
		function trans(id){
// 			mui.openWindow({
// 				url: 'upload.html', //通过URL传参
// 				id:  e.target.id
// 			});
			window.location.href ='upload.html?id='+id;
			this.target ="self";
		}
		
		</script>
		
	</body>

</html>
